package top.fzqblog.concurrent;

import java.util.concurrent.TimeUnit;

/**
 * Created by 抽离 on 2017/7/26 0026.
 */
public class CrawlerThread implements Runnable{

    private String url;

    public CrawlerThread(String url) {
        this.url = url;
    }

    @Override
    public void run() {
        try {
            System.out.println("正在抓取：" + url);
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
